<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        th,td{
            width: 200px;
            text-align: center;
        }
    </style>
</head>
<body>
    
    <div id="app">

        <table border="1" cellspacing="0" cellpadding='5'>
            <tr>
                <th>名称</th>
                <th>性别</th>
                <th>年龄</th>
                <th>电话号码</th>
            </tr>

            <tr v-for='item in list'>
                <td>{{item.name}}</td>
                <td>{{item.sex == 1 ? '女' : '男'}}</td>
                <td>{{item.age}}</td>
                <td>{{item.tel}}</td>
            </tr>
        </table>
    </div>

    <script src="../lib/Vue/vue.js"></script>
    <script>

        var vm = new Vue({
            el: '#app',
            data: {
                list:[
                    { name : "张三" , sex : 0 , age : 30 , tel : 12312341234 },
                    { name : "李四" , sex : 1 , age : 50 , tel : 12312341234 },
                    { name : "王五" , sex : 0 , age : 40 , tel : 12312341234 },
                    { name : "赵六" , sex : 1 , age : 50 , tel : 12312341234 }
                ]
            },
        })
    </script>
</body>
</html>